Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Add minDelayOnEmptyResult in cache config #360

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

ShimmerGlass
Copy link
Contributor

As described here : hashicorp/consul#4810 blocking queries on missing services do not block when there is a lot of changes happening on a DC. While we want to keep minDelayBetweenRequests relatively small, we would like to limit the rate of queries on missing services as they won't ever block (until the service is registered).

In cache, when an empty response is received, wait at least minDelayOnEmptyResult before running the next request. If minDelayBetweenRequest is greater than minDelayOnEmptyResult, wait minDelayOnEmptyResult instead.

@ShimmerGlass ShimmerGlass force-pushed the min-duration-on-empty-result branch 2 times, most recently from 417277b to ff29a8c Compare November 23, 2018 13:32
In cache, when an empty response is received, wait at least
minDelayOnEmptyResult before running the next request. If
minDelayBetweenRequest is greater than minDelayOnEmptyResult,
wait minDelayOnEmptyResult instead.
@ShimmerGlass
Copy link
Contributor Author

@rickfast Did you have time to take a look at this ?

Copy link
Contributor

@pierresouchay pierresouchay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yfouquet yfouquet merged commit 252ffd6 into rickfast:master Nov 28, 2018
@ShimmerGlass
Copy link
Contributor Author

Thx :) Could you please release a version so we can import this change ?

@ShimmerGlass ShimmerGlass deleted the min-duration-on-empty-result branch November 28, 2018 08:42
@ShimmerGlass
Copy link
Contributor Author

⇧up @yfouquet / @rickfast

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants